%{
#include <stdio.h>
extern int yylex();
extern void yyerror(char *);
%}


%token	WORDUP  WORD  '.' POING

%%
Text: Sentence
    | Sentence Text
    ;

Sentence: WORDUP WordList '.'
          {printf("Sentence");}
        ;

WordList: WORD
        | WORD WordList 
        ;
%%

